"use strict";
import * as tpsSection from './../Service/prismSectionCalculate';
import * as tpsClass from './../Model/TPS/index';

var sectionCenter = new tpsClass.Coor();
sectionCenter.e = 0;
sectionCenter.n = 299.5530;
sectionCenter.h = 879.5266;
var targetOriginal = new tpsClass.Coor();
targetOriginal.e = 0;
targetOriginal.n = 216.7115;
targetOriginal.h = 823.5151;
var targetNow = new tpsClass.Coor();
targetNow.e = 0;
targetNow.n = 199.9486;
targetNow.h = 870.6414;
var prismOriginal = new tpsClass.Coor();
prismOriginal.e = 0;
prismOriginal.n = 397.7161;
prismOriginal.h = 860.4472;
var prismNow = new tpsClass.Coor();
prismNow.e = 0;
prismNow.n = 376.1965;
prismNow.h = 815.2943;
;
var option = {sectionCenter,targetOriginal,targetNow,prismOriginal,prismNow};
var sectiontest = new tpsSection.PrismSectionCalculate(option);
console.log(sectiontest.rotationAngle());
console.log(sectiontest.levelAngle());
var diff:Array<number> = [0,0];
diff = sectiontest.calculateDiff();
console.log(diff);